package catalina;

import server.HttpServlet;

import java.util.HashMap;
import java.util.Map;

public class MappedContext {

    private Map<String, HttpServlet> wrapperMap = new HashMap<>();

    public void addWrapper(String name, HttpServlet servlet) {
        wrapperMap.put(name, servlet);
    }

    public Map<String, HttpServlet> getWrappers() {
        return wrapperMap;
    }

    public HttpServlet getWrapper(String name) {
        return wrapperMap.get(name);
    }
}
